//
//  CommentModel.m
//  WanCaiC8
//
//  Created by tangang on 2018/4/23.
//  Copyright © 2018年 tangang. All rights reserved.
//

#import "CommentModel.h"

@implementation CommentModel

- (void)setContent:(NSString *)Content{
    _Content=[[SocketRocketUtility instance] getMessageConversion:Content];
}

- (void)setSubTime:(NSString *)SubTime{
    NSArray *str=[SubTime componentsSeparatedByString:@"."];
    if (str.count>0) {
        SubTime=str[0];
    }
    str=[SubTime componentsSeparatedByString:@"+"];
    if (str.count>0) {
        SubTime=str[0];
    }
//    NSDate *date=[TGTools dateFormatter:@"yyyy-MM-dd'T'HH:mm:ss" andString:SubTime];
//    _SubTime=[TGTools dateFormatter:@"yyyy-MM-dd HH:mm" andDate:date];
    
    
    _SubTime = [[TGToolForDateFormatter shareInstance] userVisibleDateTimeStringForRFC3339DateTimeString:SubTime];
    
}

@end
